<template>
  <div class="home">
    <img alt="Vue logo" src="../assets/logo.png">
    <h1>父组件接受的数据是 :{{ indata }}</h1>
    <HelloWorld
    msg="Welcome to Your Vue.js App"
    :count="mage"
    @change="comein"
    ></HelloWorld>

    <HelloWorld></HelloWorld>
    <HelloWorld></HelloWorld>
  </div>
</template>

<script>
// @ is an alias to /src
import HelloWorld from '@/components/HelloWorld.vue'

export default {
  name: 'HomeView',
  components: {
    HelloWorld
  },
  data () {
    return {
      mage: 7000,
      indata: 0,
    }
  },
  methods:{
    comein(indata){
      this.indata = indata;
    }
  }
}
</script>
